module.exports = {
    //配置项: 配置值
    port: 8360, //监听的端口
    db_type: 'mysql', // 数据库类型
    db_host: 'localhost', // 服务器地址
    db_port: '3306', // 端口
    db_name: 'cmswing', // 数据库名
    db_user: 'root', // 用户名
    db_pwd: '123456', // 密码
    db_prefix: 'cw_', // 数据库表前缀
    app_group_list: ['Home', 'Admin', 'Weixin', 'Restful'], //分组列表
    //Session配置
    url_resource_reg: /^(resource\/|static\/|favicon\.ico|robot\.txt)/, //判断是否是静态资源的正则
    session_name: "cmswing", //session对应的cookie名称
    session_type: "File", //session存储类型'File', 空为内存，还可以为Db
    //微信配置
    wechat_id: 'wxadce60f0c68b9b58',//appid
    wechat_secret: '41318d0bc30d292f278a720758d14833',//secret
    //WebSocket配置
    use_websocket: true, //是否使用websocket
    filter_data: true, //主要是安全过滤，强烈建议开启

    // 配置项可选值
    setting_all: {
        'language': "en:English,zh_CN:简体中文,zh_TW:繁體中文",
        'themeall': "default/:<b>areo blue</b>:default,simple/:<b>simple</b>:simple,metro/:<b>metro</b>:metro,metro/blue_:metro-blue:color,metro/leaf_:metro-green:color,metro/green_:metro-green+:color,metro/grey_:metro-grey:color,metro/purple_:metro-purple:color,metro/pink_:metro-pink:color,metro/orange_:metro-orange:color",
        'codethemeall': "chrome,clouds,crimson_editor,eclipse,github,solarized_light,tomorrow,xcode,ambiance,idle_fingers,monokai,pastel_on_dark,solarized_dark,tomorrow_night_blue,tomorrow_night_eighties",
        'wallall': "1,2,3,4,5,6,7,8,9,10,11,12,13",
        'musicthemeall': "ting,beveled,kuwo,manila,mp3player,qqmusic,somusic,xdj",
        'moviethemeall': "webplayer,qqplayer,vplayer,tvlive,youtube"
    },
    //新用户初始化配置
    setting_default: {
        'list_type': "icon",		// list||icon
        'list_sort_field': "name",		// name||size||ext||mtime
        'list_sort_order': "up",		// asc||desc
        'theme': "simple/",	// app theme [default,simple,metro/,metro/black....]
        'codetheme': "clouds",	// code editor theme
        'wall': "7",			// wall picture
        'musictheme': "mp3player",	// music player theme
        'movietheme': "webplayer"	// movie player theme
    },
    //初始化系统配置
    setting_system_default: {
        'system_password': function () {
            return substr(md5(num_rand(10)), mt_rand(0, 32 - 10), 10);
        },
        'system_name': "CmsWing Explorer",
        'system_desc': "——酷翼.资源管理器",
        'path_hidden': ".htaccess,.git,.DS_Store",//目录列表隐藏的项
        'auto_login': "1",			// 是否自动登录；登录用户为guest
        'first_in': "explorer",	// 登录后默认进入[explorer desktop,editor]
        'new_user_app': "365日历,pptv直播,ps,qq音乐,搜狐影视,时钟,天气,水果忍者,计算器,豆瓣电台,音悦台,icloud",
        'new_user_folder': "download,music,image,desktop"
    },
    //初始化默认菜单配置
    setting_menu_default: [
        {'name': 'desktop', 'type': 'system', 'url': 'index.php?desktop', 'target': '_self', 'use': '1'},
        {'name': 'explorer', 'type': 'system', 'url': 'index.php?explorer', 'target': '_self', 'use': '1'},
        {'name': 'editor', 'type': 'system', 'url': 'index.php?editor', 'target': '_self', 'use': '1'},
        {'name': 'adminer', 'type': '', 'url': './lib/plugins/adminer/', 'target': '_blank', 'use': '1'}
    ],
    //权限配置；精确到需要做权限控制的控制器和方法
    //需要权限认证的Action;root组无视权限
    role_setting: {
        'explorer': ['mkdir', 'mkfile', 'pathRname', 'pathDelete', 'zip', 'unzip', 'pathCopy', 'pathChmod', 'pathCute', 'pathCuteDrag', 'pathCopyDrag', 'clipboard', 'pathPast', 'pathInfo', 'serverDownload', 'fileUpload', 'search', 'pathDeleteRecycle', 'fileDownload', 'zipDownload', 'fileDownloadRemove', 'fileProxy', 'makeFileProxy'],
        'app': ['user_app', 'init_app', 'add', 'edit', 'del'],//
        'user': ['changePassword'],//可以设立公用账户
        'editor': ['fileGet', 'fileSave'],
        'userShare': ['set', 'del'],
        'setting': ['set', 'system_setting', 'php_info'],
        'fav': ['add', 'del', 'edit'],
        'member': ['get', 'add', 'del', 'edit'],
        'group': ['get', 'add', 'del', 'edit'],
    }
};